//
//  NSDictionary+SafeValue.h
//  MexicoLoan
//
//  Created by WXP on 2025/2/26.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSDictionary (SafeValue)

- (double)doubleValueForKey:(NSString *)key;
- (int)intValueForKey:(NSString *)key;
- (BOOL)boolValueForKey:(NSString *)key;
- (NSNumber *)numberValueForKey:(NSString *)key;
- (NSString *)stringValueForKey:(NSString *)key;
- (NSArray *)arrayValueForKey:(NSString *)key;
- (NSDictionary *)dictionaryValueForKey:(NSString *)key;

@end

NS_ASSUME_NONNULL_END
